<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>[%$lngpack.ordertitle%] - [%$lngpack.sitename%]</title>
<meta name="keywords" content="[%$lngpack.keyword%]" />
<meta name="description" content="[%$lngpack.description%]" />
<link href="[%$url%]templates/default/style/all.css" rel="stylesheet" type="text/css" />
<link href="[%$url%]templates/default/style/member.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="[%$url%]js/jquery.js"></script>
<script type="text/javascript" src="[%$url%]js/basicrun.js"></script>
</head>

<body>
<div class="container_out">
[%include file="default/en/public/head.html"%]
	[%if $out=='buylist'%]
	<!--购物车列表-->
	<script type="text/javascript">
		var order_amout_err = "[%$lngpack.order_amout_err%]";
	</script>
	<!--当前浏览位置-->
	<div class="container_inner">
		<div class="lineheight"></div>
		<div class="bann"><img src="[%$url%]templates/default/images/temp/vercartbann.jpg" alt="bann"/></div>
		<div class="lineheight"></div>
		<div class="ordertop"></div>
		<div class="ordercenter">
		    <div class="orderlist">
			<div class="text01"><span class="font04 colorghow">My Shopping Cart</span></div>
			<div class="line2"></div>
			<div class="text02 margintop margintottom">
			[% if count($array) > 0 %]
			<form name="mainform" method="post" action="[%$mlink.orderupdae%]">
			<table border="0" width="100%">
				<tr class="tdheight3">
					<td> Product Name </td>
					<td> Product Number </td>
					<td> Order Price </td>
					<td> Quantity </td>
					<td> Subtotal </td>
					<td> Operation </td>
				</tr>
				[%forlist from=$array key=i%]
				<tr class="tdheight4">
					<td><a target="_blank" class="infolink05" href="[%$array[i].link%]">[%$array[i].title%]</a></td>
					<td>[%$array[i].tsn%]</td>
					<td id="right">
						[%$moneytype%][%$array[i].bprice%]
						<input type="hidden" name="bprice[]" value="[%$array[i].bprice%]">
						<input type="hidden" name="did[]" value="[%$array[i].did%]">
					</td>
					<td>
						<input type="text" name="amount[]" id="amount[%$array[i].did%]" value="[%$array[i].amount%]" onBlur="javascript:orderamount([%$array[i].did%]);" size="2" maxlength="5" class="smallInput">
					</td>
					<td id="right">
						[%$moneytype%][%$array[i].countprice%]
						<input type="hidden" name="countprice[]" id="countprice" value="[%$array[i].countprice%]">
					</td>
					<td><a class="infolink04" href="javascript:if (confirm(''Are you sure you removed the goods from the shopping cart do?')) location.href='[%$array[i].dellink%]';">Delete</a></td>
				</tr>
				[%/forlist%]
				<tr class="tdheight4">
					<td colspan="6" id="right"><span class="font05 colorgreg strong">Total：[%$moneytype%][%$ordertotal%]</span></td>
				</tr>
				<tr class="tdheight4">
					<td colspan="6" id="right">
						<input type="submit" class="inputsubmit02" name="Submit" value="Update">&nbsp;
						<input name="addch" class="inputsubmit02" type="button" value="Clear" onclick="javascript:if (confirm('Are you sure you want to clear the goods they are buying do?')) location.href='[%$mlink.clearcart%]';">
					</td>
				</tr>
			</table>
			</form>
			</div>
			<div class="text02 margintop2 margintottom">
				<div style="float: left;width:100px;"id="left"><a href="[%$homelink]"><img src="[%$url%]templates/default/images/continue_shopping_button.png" alt="Continue Shopping"></a></div>
				<div id="right"><a href="[%$mlink.orderpay%]"><img src="[%$url%]templates/default/images/checkout_link_button.png" alt="Settlement"></a></div>
			</div>
			[%else%]
			<table border="0" width="100%">
				<tr class="tdheight4">
					<td>You have not selected commodities!</td>
				</tr>
			</table>
			</div>
			[%/if%]
		    </div>
		</div>
		<div class="orderbottom"></div>
	</div>
	[%elseif $out=='buyedit'%]
	<!--购物车信息填写-->
	<script type="text/javascript" src="[%$url%]js/ajax_city.js"></script>
	<script type="text/javascript">
	$(function() {
		sec_cityone('[%$member.country%]','[%$member.province%]');
		sec_citytwo('[%$member.province%]','[%$member.city%]');
		sec_district('[%$member.city%]','[%$member.district%]');
	});
	var citytwo_title = "[%$lngpack.citytwo_title%]";
	var citythree_title = "[%$lngpack.citythree_title%]";
	var district_title = "[%$lngpack.district_title%]";
	var count_city_err = "[%$lngpack.count_city_err%]";
	var address_title = "[%$lngpack.address_title%]";
	var zipcode_empty = "[%$lngpack.zipcode_empty%]";
	var alias_empty = "[%$lngpack.alias_empty%]";
	var email_err = "[%$lngpack.email_err%]";
	var tel_empty = "[%$lngpack.tel_empty%]";
	</script>
	<div class="container_inner">
		<div class="lineheight"></div>
		<div class="bann"><img src="[%$url%]templates/default/images/temp/vercartbann.jpg" alt="bann"/></div>
		<div class="lineheight"></div>
		<div class="ordertop"></div>
		<div class="ordercenter">
		    <div class="orderlist">
			<div class="text01"><span class="font04 colorghow">支付或提交订单</span><span class="font05 colorgorning2">1、购物清单 2、会员登陆 3、填写配送信息 4、支付或提交订单</span></div>
			<div class="line2"></div>
			[% if count($array) > 0 %]
			<form name="ordersaveform" method="post" action="[%$mlink.ordersave%]" onsubmit="return ordersave()">
			<input type="hidden" name="userid" value="[%$member.userid%]">
			<input type="hidden" name="productmoney" value="[%$productmoney%]">
			<input type="hidden" name="discount_productmoney" value="[%$discount_productmoney%]">
			<input type="hidden" name="discountmoney" value="[%$discountmoney%]">
			<div class="ordertitle margintop2 margintottom font06 colorgreen strong">商品列表 [<a href="[%$mlink.buylist%]">我要修改</a>] </div>
			<div class="text02 margintop margintottom">
			<table border="0" width="100%">
				<tr class="tdheight3">
					<td>商品名</td>
					<td>商品编号</td>
					<td>订购价格</td>
					<td>数量</td>
					<td>小计</td>
				</tr>
				[%forlist from=$array key=i%]
				<tr class="tdheight4">
					<td>
						<input type="hidden" name="ptitle[]" value="[%$array[i].title%]">
						<a target="_blank" class="infolink05" href="[%$array[i].link%]">[%$array[i].title%]</a>
					</td>
					<td><input type="hidden" name="tsn[]" value="[%$array[i].tsn%]">[%$array[i].tsn%]</td>
					<td id="right">
						[%$moneytype%][%$array[i].bprice%]
						<input type="hidden" name="bprice[]" value="[%$array[i].bprice%]">
						<input type="hidden" name="oprice[]" value="[%$array[i].oprice%]">
						<input type="hidden" name="did[]" value="[%$array[i].did%]">
					</td>
					<td>[%$array[i].amount%]<input type="hidden" name="amount[]" id="orderhow" value="[%$array[i].amount%]"></td>
					<td id="right">
						[%$moneytype%][%$array[i].countprice%]
						<input type="hidden" name="countprice[]" id="countprice" value="[%$array[i].countprice%]">
					</td>
				</tr>
				[%/forlist%]
				<tr class="tdheight4">
					<td colspan="5" id="right"><span class="font05 colorgreg strong">商品总金额：[%$moneytype%][%$productmoney_f%] - 折扣[%$moneytype%][%$discountmoney%] = [%$moneytype%][%$discount_productmoney_f%]</span></td>
				</tr>
			</table>
			</div>
			<div class="ordertitle margintop2 margintottom font06 colorgreen strong">收件人信息</div>
			<div class="line2"></div>
			<div class="text02 margintop2 margintottom">
			    <table border="0" width="100%">
				<tr class="tdheight5">
				    <td width="15%" id="right" class="strong">收货人姓名：</td>
				    <td id="left"><input type="text" name="alias" value="[%$member.alias%]" maxlength="20" size="10" class="smallInput"></td>
				    <td id="right" class="strong">电子邮件地址：</td>
				    <td id="left"><input type="text" name="email" value="[%$member.email%]" maxlength="100" size="50" class="smallInput"></td>
				</tr>
				<tr class="tdheight5">
				    <td width="15%" id="right" valign="top" class="strong">地区：</td>
				    <td id="left" colspan="3">
					<select size="1" name="cityone" class="select" id="cityone">
					    <option value="0" [%if $member.country==0%]selected[%/if%]>[%$lngpack.cityone_title%]</option>
					    <option value="1" [%if $member.country==1%]selected[%/if%]>中国</option>
					</select>
					<select size="1" name="citytwo" class="select" id="citytwo">
					    <option selected value="0">[%$lngpack.citytwo_title%]</option>
					</select>
					<select size="1" name="citythree" class="select" id="citythree">
					    <option selected value="0">[%$lngpack.citythree_title%]</option>
					</select>
					<select size="1" name="district" class="select" id="district">
					    <option selected value="0">[%$lngpack.district_title%]</option>
					</select>
					<span id="loading">正在读取</span>
				    </td>
				</tr>
				<tr class="tdheight5">
					<td width="15%" id="right" valign="top" class="strong">详细地址：</td>
					<td id="left" colspan="3"><input type="text" name="address" value="[%$member.address%]" maxlength="120" size="60" class="smallInput"> <input type="text" name="zipcode" value="[%$member.zipcode%]" maxlength="10" size="10" class="smallInput"></td>
				</tr>
				<tr class="tdheight5">
				    <td width="15%" id="right" class="strong">联系电话：</td>
				    <td id="left"><input type="text" name="tel" value="[%$member.tel%]" maxlength="20" size="10" class="smallInput"></td>
				    <td id="right" class="strong">手机：</td>
				    <td id="left"><input type="text" name="mobile" value="[%$member.mobile%]" maxlength="25" size="15" class="smallInput"></td>
				</tr>
				<tr class="tdheight5">
				    <td width="15%" id="right" class="strong">送货时间：</td>
				    <td id="left" colspan="3">
					<select size="1" name="sendtime" class="select">
					    <option value="1" selected>工作日、双休日与假日均可送货</option>
					    <option value="2">只双休日、假日送货(工作日不用送)</option>
					    <option value="3">只工作日送货(双休日、假日不用送) (注：写字楼/商用地址请客户备注说明)</option>
					    <option value="4">尽量安排其他时间送货,请备注说明</option>
					</select>
				    </td>
				</tr>
			    </table>
			</div>
			<div class="ordertitle margintop2 margintottom font06 colorgreen strong">配送方式</div>
			<div class="line2"></div>
			<div class="text02 margintop2 margintottom">
			    <table border="0" width="100%">
				[% if count($shipplug) > 0 %]
				[%forlist from=$shipplug key=i%]
				<tr class="tdheight5">
					<td width="15%" id="right" class="colorgreg strong">
						<input type="radio" name="osid" value="[%$shipplug[i].osid%]"[%if $shipplug[i].selected==selected%] checked[%/if%]>
						[%$shipplug[i].title%]
					</td>
					<td width="85%" id="left" class="lineheight01">运费：[%$moneytype%][%$shipplug[i].price%] <BR>[%$shipplug[i].content%]</td>
				</tr>
				[%/forlist%]
				[%else%]
				<tr class="tdheight5">
				    <td id="center" class="colorgreg strong">暂无配送方式</td>
				</tr>
				[%/if%]
			    </table>
			</div>
			<div class="ordertitle margintop2 margintottom font06 colorgreen strong">支付方式</div>
			<div class="line2"></div>
			<div class="text02 margintop2 margintottom">
			    <table border="0" width="100%">
				[% if count($payplug) > 0 %]
				[%forlist from=$payplug key=i%]
				<tr class="tdheight5">
					<td width="15%" id="right" class="colorgreg strong">
						<input type="radio" name="opid" value="[%$payplug[i].opid%]"[%if $payplug[i].selected==selected%] checked[%/if%]>
						[%$payplug[i].payname%]
					</td>
					<td width="85%" id="left" class="lineheight01">手续费比例：[%$payplug[i].payis%]% <BR>[%$payplug[i].paycontent%]</td>
				</tr>
				[%/forlist%]
				[%else%]
				<tr class="tdheight5">
				    <td id="center" class="colorgreg strong">暂无支付方式</td>
				</tr>
				[%/if%]
			    </table>
			</div>
			<div class="ordertitle margintop2 margintottom font06 colorgreen strong">其它信息</div>
			<div class="line2"></div>
			<div class="text02 margintop2 margintottom">
			    <table border="0" width="100%">
				<tr class="tdheight5">
				    <td width="15%" id="right" class="strong">备注：</td>
				    <td width="85%" id="left"><textarea name="content" rows="3" cols="60"></textarea></td>
				</tr>
				<tr class="tdheight5">
				    <td width="15%" id="right" class="strong">发票抬头：</td>
				    <td width="85%" id="left"><input type="text" name="invpayee" maxlength="30" size="40" class="smallInput" /></td>
				</tr>
				<tr class="tdheight5">
				    <td width="15%" id="right" class="strong">发票内容：</td>
				    <td width="85%" id="left"><input type="text" name="invcontent" maxlength="30" size="20" class="smallInput" /> （注明：数码、手机、小家电类等电器类或大件类商品由于涉及保修必须开具商品明细）</td>
				</tr>
			    </table>
			</div>
			<div class="text02 margintop2 margintottom" id="center"><input type="submit" name="Submit" id="submit" class="inputsubmit01" value="确认此订单"></div>
			</form>
			[%else%]
			<div class="text02 margintop2 margintottom" id="center">您还没有挑选商品！</div>
			[%/if%]
		    </div>
		</div>
		<div class="orderbottom"></div>
	</div>
	[%elseif $out=='buyok'%]
	<!--订购成功_结算信息-->
	<div class="container_inner">
		<div class="lineheight"></div>
		<div class="bann"><img src="[%$url%]templates/default/images/temp/vercartbann.jpg" alt="bann"/></div>
		<div class="lineheight"></div>
		<div class="ordertop"></div>
		<div class="ordercenter">
		    <div class="orderlist">
				<div class="text01"><span class="font04 colorghow">订单提交成功</span><span class="font05 colorgorning2">1、购物清单 2、会员登陆 3、填写配送信息 4、支付或提交订单</span></div>
				<div class="line2"></div>
				<div class="text02 margintop margintottom">
					<p class="font14" align="center"><img src="[%$url%]templates/default/images/ok.gif" width="48" height="48" align="absmiddle" /> <strong>恭喜，您的订单已提交成功，请记住您的订单号：<span class="colorgreg">[%$ordersn%]</span></strong></p>
				</div>
				<div class="text02 margintop margintottom">
					<p class="font14" align="center">您订单总金额为：商品合计[%$moneytype%][%$discount%] + 邮寄费用[%$moneytype%][%$shipprice%] + 支付手续费[%$moneytype%][%$payprice%] = <span class="colorgreg">[%$moneytype%][%$orderamount%]</span></p><br/>
					<p class="font14" align="center">[%$orderonline%]</p>
				</div>
				<div class="text02 margintop2 margintottom" id="center">您可以去：<a class="infolink06" href="[%$mlink.center%]">会员中心</a> 或 <a class="infolink06" href="[%$homelink%]">返回网站首页</a></div>
		    </div>
		</div>
		<div class="orderbottom"></div>
	</div>
	[%/if%]
	<!--版权声明-->
	[%include file="default/en/public/fotter.html"%]
</div>

</body>

</html>
